let util = require("./util/string_util");
let du = require("./util/data_util");

util.printf();
util.println();
var s = du.simpleFormat();
console.log(s);

var human = {
    name: "brook",
    age: 40
};

human[Symbol.iterator] = function () {
    var i = 0;
    return {
        "next": function () {
            if (i == 0) {
                i++;
                return { value: human.name, done: false };
            } else {
                return { value: human.age, done: true };
            }
        },
        "return": function () {
            console.log("returned...");
            return { value: 502, done: true };
        }
    };
};

for (var attr of human) {
    console.log(attr);
    break;
}